package gpi.object;

import gpi.algo.Algorithm;


public class Resource {
	private String name;
	private int max;
	
	/**
	 * Constructor used when minTime and maxTime are also known (mostly used for
	 * testing)
	 * 
	 * @param name
	 * @param max
	 */
	public Resource(String name, int max) {
		this.name = name;
		this.max = max;
		Algorithm.getInstance().addResource(this);
	}
	
	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}
	
	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}
	
	/**
	 * @return the max
	 */
	public int getMax() {
		return max;
	}
	
	/**
	 * @param max the max to set
	 */
	public void setMax(int max) {
		this.max = max;
	}
}
